package com.tenebrous.jestic.mapper.idao.framwork.meber.organ;

import com.tenebrous.jestic.entity.framwork.meber.organ.OrgUserAccount;
import com.tenebrous.jestic.mapper.ISuperMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@Mapper
public interface OrgUserAccountMapper extends ISuperMapper<OrgUserAccount> {

    @Select("SELECT * FROM ORG_USER_ACCOUNT WHERE USERNAME= #{username}")
    List<OrgUserAccount> queryByUserName(@Param("username") String username);

    @Delete("DELETE FROM ORG_USER_ACCOUNT WHERE USERID = #{userid}")
    void deleteByUserid(@Param("userid") String userid);

}